<?php
namespace app\admin\model\fanyi;

class FanYi
{
    /**实例化引擎类
     * @param array $config
     * @return object|\think\App
     */
    public static function translate($config=[]){
        $engine = ucfirst(config('fanyi.engine'));
        $obj = app("app\admin\model\\fanyi\bind\\".$engine);
        return $obj;
    }
}